package com.chixing.day05_oop;

/**
 * 储蓄账户
 */
public class SavingAccount extends Account {

    public SavingAccount(){
        super();
    }

    public SavingAccount(long accNo, String accName, String accPassword, long accTelNo, float accBalance, int accType) {
        super(accNo, accName, accPassword, accTelNo, accBalance, accType);
    }

    // 【重写 override】父类的存取款方法 : 业务内部实现不一样（方法内部不一样）
    public float depoist(float money){
        System.out.println("SavingAccount 子类的存款方法");
        return 0;
    }

    public void withdraw(float money){
        System.out.println("SavingAccount 子类的取款方法");
    }

}
